package personal.xjl.studentdemo.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import personal.xjl.studentdemo.entity.Course;

import java.util.List;

@Mapper
public interface CourseMapper {
    @Select("select *from course where id=#{course_id}")
    public Course getCourseById(@Param("course_id") int course_id);
    @Select("select * from course limit #{i},#{pageSize}")
    List<Course> getCourses(@Param("i") int i,@Param("pageSize") int pageSize);
}
